package com.lh.filter.method2;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import javax.servlet.*;
import java.io.IOException;

/**
 * 过滤器手动实现方法二
 *
 * @Author LuoHang
 * @Date 2022-05-10 19:02
 **/
public class MyFilter02 implements Filter {
    public static final Logger logger = LoggerFactory.getLogger(MyFilter02.class);

    @Override
    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
        logger.info("MyFilter02.doFilter()方法执行.........");
        filterChain.doFilter(servletRequest,servletResponse);
    }
}
